Skip to content

task: agent ready prep - #280

Open
jharlow-intel wants to merge 7 commits into
mainfrom
task/agent-ready
Open

jharlow-intel wants to merge 7 commits into
mainfrom
task/agent-ready

Conversation

@jharlow-intel

@jharlow-intel jharlow-intel commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Very similar to IntelPython/mkl_fft#379: adds contributor and coding-agent guidance (CONTRIBUTING.md, AGENTS.md), PR and issue templates, and a README pointer, checked against this repo's build and CI. It also corrects the existing AGENTS.md files.

Comment thread CONTRIBUTING.md
Comment thread CONTRIBUTING.md Outdated
Comment thread conda-recipe-cf/AGENTS.md Outdated
Comment thread conda-recipe-cf/AGENTS.md Outdated
Comment thread AGENTS.md
Comment thread mkl_umath/src/AGENTS.md Outdated
Comment thread AGENTS.md Outdated
Comment thread CONTRIBUTING.md Outdated
Comment thread .github/AGENTS.md
- CONTRIBUTING.md: use --override-channels, install pre-commit with the
  pylint and shellcheck its system hooks need, note Windows support and
  the meson.build GCC/MSVC branches, and match the CHANGELOG link format
- AGENTS.md: restore supported platforms, add the meson.build guardrail,
  and note that checkout tests need the editable install
- conda-recipe-cf/AGENTS.md: gnu_thread is Linux-only, llvm-openmp has no
  run pin, and each recipe has its own conda_build_config.yaml
- mkl_umath/src/AGENTS.md: scope the patch lock claim and note per-thread
  patch/restore balance
- .github/AGENTS.md: list the templates and repo config files

@napetrov napetrov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked the docs at 3f8573f against the tree and by running them.

  • I ran the CONTRIBUTING.md setup verbatim in a clean condaforge/miniforge3 container. Creating the env, the editable install, pytest mkl_umath/tests (392 passed, 1 skipped) and pre-commit run --all-files all pass. A control build without -Dmkl_threading=gnu_thread fails at import with libmkl_intel_thread.so.3: undefined symbol: __atomic_compare_exchange, so the gnu_thread note is right.
  • I also ran a static check of the paths, commands and identifiers the guidance names. At head it finds no broken references. At base it found the stale mkl_random mentions and the src/__umath_generated.c path, which this PR fixes.
  • I checked loading with Claude Code 2.1.296. The root AGENTS.md loads from every directory, and each nested one loads once the agent works in its subtree. .github/copilot-instructions.md is never loaded; more on that inline.

A few remaining points are inline. None of them block the PR.

Comment thread CONTRIBUTING.md
On Linux:

```sh
conda create -n mkl_umath-dev --override-channels -c conda-forge python pip \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python is unpinned here. conda-forge already has Python 3.15.0, while pyproject.toml has requires-python = ">=3.10,<3.15". Today the solve picks 3.14.8 (checked), likely because not every dependency has a 3.15 build yet. Once they all do, this line creates a 3.15 env and the editable install fails on requires-python. I suggest "python<3.15", or a specific python=3.14.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python 3.15 is going to be enabled in #279

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No change here: after merging main (#279), pyproject.toml has requires-python = ">=3.10,<3.16", so a Python 3.15 solve installs fine. I left python unpinned so the command does not go stale on the next release.

Comment thread conda-recipe/AGENTS.md Outdated
Comment thread AGENTS.md Outdated
Comment thread .github/copilot-instructions.md
Comment thread .github/AGENTS.md Outdated
Comment thread .github/ISSUE_TEMPLATE/bug_report.yml
Comment thread .github/ISSUE_TEMPLATE/bug_report.yml
Comment thread CONTRIBUTING.md Outdated
Comment thread CONTRIBUTING.md Outdated
Comment thread conda-recipe-cf/AGENTS.md
Comment thread benchmarks/AGENTS.md Outdated
Comment thread .gitignore
Comment thread _vendored/AGENTS.md Outdated
Comment thread mkl_umath/tests/AGENTS.md
@antonwolfy antonwolfy added this to the 0.7.0 release milestone Oct 15, 2026
Comment thread benchmarks/AGENTS.md
Comment on lines +7 to +9
- `benchmarks/micro/` — per-ufunc micro-benchmarks
- `benchmarks/npbench/` — end-to-end kernels adapted from npbench
- `benchmarks/_patch_setup.py` — patches NumPy at import

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That lists benchmarks/micro/, benchmarks/npbench/ and benchmarks/_patch_setup.py. The real paths are one level deeper, under benchmarks/benchmarks/; the same goes for __init__.py in the thread-default guardrail.

Comment thread mkl_umath/AGENTS.md
- `patch.py`, `_patch_startup.py`, `with_patch.py`, `__main__.py` — persistent
(`.pth`) and one-shot patching behind `python -m mkl_umath`
- `_version.py` — the version; `meson.build` reads it
- `generate_umath_doc.py`, `ufunc_docstrings_numpy{1,2}.py` — docstring sources

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The NumPy 1 file was removed

Comment thread AGENTS.md
- Runtime deps: `numpy`; the conda recipes add the MKL and compiler runtimes
- Platforms: Linux and Windows; `.github/workflows/` is canonical for the matrix
- Setup, checks, and style: `CONTRIBUTING.md`
- Single test: `pytest mkl_umath/tests/<file>::<test>`, from a checkout with the

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be written as <file>.py::<test>, because pytest can't find the file without the extension

Comment thread CONTRIBUTING.md
## Setup

On Linux:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pre-commit config also runs gitleaks and actionlint, which pre-commit builds from source and so need Go and network access. The pylint hook also needs the dev environment active. CONTRIBUTING mentions none of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants